<div id="header">
    <div class="left-panel">
        <div id="header-share"> 
            <span class="span-4">Chia sẻ cùng bạn bè!</span>
            <div id="header-share-box">
                <ul>
                    <li class="fb-icons">Facebook</li>
                    <li class="tw-icons">Twitter</li>
                    <li class="gp-icons">Google+</li>
                    <li class="zm-icons">Zing me</li>
                    <li class="bb-icons end">Banbe</li>
                </ul>
            </div>
        </div>
    </div>
    <div class="center-panel">dibui.vn</div>
    <div class="right-panel">
        <?php if($this->auth->is_logged_in()) { $userInfo = $this->auth->get_user(); ?>
        <ul class="top-info">
            <li><div class="avatar"><img src="<?php echo config_item('st_images'); ?>/avatars/no-avatar_thumb.jpg" width="20" height="20" /></div></li>
            <li><div class="displayname"><?php echo $userInfo['displayname']; ?></div></li>
            <li class="end">
                <div id="info-action">
                    <div><img src="<?php echo config_item('st_images'); ?>/buttons/tray-down.png" width="32" height="32" /></div>
                    <div id="info-action-box"> 
                        <ul>
                            <li><a href="#">Cập nhật thông tin</a></li>
                            <li><a href="#">Thay đổi mật khẩu</a></li>
                            <li><a href="/user/logout">Thoát</a></li>
                        </ul>
                    </div>
                </div>
            </li>   
        </ul>
        <?php } else { ?>
        <form method="post" action="user/login">
            <div class="textbox">
                <input type="text" name="email" value="email" onfocus="clearText(this)" onblur="clearText(this)"/>
            </div>
            <div class="textbox">
                <input type="password" name="password" value="password" onfocus="clearText(this)" onblur="clearText(this)"/>
            </div>
            <div class="span-4">
                <input type="submit" name="submit" value="Go!" class="button1" style="width: 35px" />
                <a href="/user/register" style="margin-left: 5px;"><input type="button" value="Đăng ký" class="button1" /></a>
            </div>
            <span class="span-4">
                <input id="rememberme" class="left" type="checkbox" name="remember" value="on"/>
                <label class="left remember_me" for="rememberme">Ghi nhớ tài khoản</label>
            </span>
        </form>
        <?php } ?>
    </div>
</div>